﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.SmartHealthcare.Infrastructure;
using VOL.Team.TeamIServices.TeamManagement.IServices;

namespace VOL.Team.TeamIServices.TeamManagement.Services
{
    public class DailyPlanService: IDailyPlanService
    {
        private readonly IBaseRepository<DailyPlan> _dailyplanRepository;

        public DailyPlanService(IBaseRepository<DailyPlan> dailyplanRepository)
        {
            _dailyplanRepository = dailyplanRepository;
        }

        /// <summary>
        /// 查询每日计划
        /// </summary>
        /// <returns></returns>
        public IQueryable<DailyPlan> GetDailyPlan()
        {
            try
            {
                var dailyplan = _dailyplanRepository.GetAll();
                return dailyplan;
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
